package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface TravelApplicationMapper {
    void add(TravelApplication data);

    void updata(TravelApplication data);

    List<SelectResult> select();

    Page<TravelApplicationVO> getList(TravelApplicationDTO data);

    boolean exist(Integer id);

    Integer getstate(Integer id);

    void setState(Integer state,Integer id);

    List<beginEndTime> getBeginEndTime(String employeeName, Date lastMonthFirstDate, Date lastMonthEndDate);

}
